package edu.jd.movieplatform.info.screen.impl;


import edu.jd.movieplatform.info.screen.Screen;
import edu.jd.movieplatform.info.screen.ScreenDto;
import edu.jd.movieplatform.info.screen.ScreenService;
import edu.jd.movieplatform.info.screen.dao.ScreenDao;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Service
@Transactional
public class ScreenServiceImpl implements ScreenService {

    @Resource
    private ScreenDao screenDao;

    @Override
    public List<Screen> getScreenList(ScreenDto dto) {
        return screenDao.findScreenListByCondition(dto);
    }

    @Override
    public Float getScreenMinPrice(ScreenDto dto) {
        return screenDao.getScreenMinPrice(dto);
    }

}
